(find-auto-coding): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Fri, 2 Jun 2006 06:34:24 +0000 (06:34 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 2 Jun 2006 06:34:24 +0000 (06:34 +0000)
lisp/international/mule.el

index e2e9ba623988a20f8eb0d8b942fed4ceefba66e8..d9242f7cb5d2300a2f1b9c42b6c9544e86a49d20 100644 (file)
@@ -1707,6 +1707,7 @@ If nothing is specified, the return value is nil."
          (goto-char tail-start)
          (setq tail-found (or (search-forward "coding:" tail-end t)
                               (search-forward "unibyte:" tail-end t)
+                              (search-forward "char-trans:" tail-end t)
                               (search-forward "enable-character-translation:"
                                               tail-end t))))
 
@@ -1761,7 +1762,7 @@ If nothing is specified, the return value is nil."
                     (re-char-trans
                      (concat
                       "[\r\n]" prefix
-                      "[ \t]*enable-character-translation[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
+                      "[ \t]*\\(enable-character-translation\\|char-trans\\)[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
                       suffix "[\r\n]"))
                     (re-end
                      (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix
@@ -1779,7 +1780,7 @@ If nothing is specified, the return value is nil."
                  (setq coding-system (intern (match-string 1))))
                (when (and (not char-trans)
                           (re-search-forward re-char-trans tail-end t))
-                 (setq char-trans (match-string 1))))))
+                 (setq char-trans (match-string 2))))))
        (if coding-system
            ;; If the coding-system name ends with "!", remove it and
            ;; set char-trans to "nil".